# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-ruby
pkgver=0.20.0
# https://github.com/tree-sitter/tree-sitter-ruby/issues/232
_gitrev=c91960320d0f337bdd48308a8ad5500bd2616979
pkgrel=1
pkgdesc="Ruby grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-ruby"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-ruby/archive/$_gitrev/tree-sitter-ruby-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}
package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
ff6eb4a28e5313cbdebca0f939d209d7c15016fef4ed864e64ce2e6f30023e15a88483c5bc90673fcee42df75c6e003b69fc2e5f81b72ecf1a506c836eebeba4  tree-sitter-ruby-c91960320d0f337bdd48308a8ad5500bd2616979.tar.gz
"
